﻿namespace RepositoryFramework.Services
{
	/// <summary>
	/// Class <see cref="ServiceBase"/> define base service class
	/// </summary>
	/// <typeparam name="T">Entity type</typeparam>
	public interface IServiceBase<T>
		where T : class
	{
		/// <summary>
		/// Validates the specified entity.
		/// </summary>
		/// <param name="entity">The entity.</param>
		/// <returns>True if not null and valid</returns>
		bool IsValid(T entity);
	}
}